package com.qf.demo;

import com.qf.pojo.Admin;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description: 公用常量
 * @Data: 2022/8/30 12:17
 * @Pacakge: com.qf.demo
 * @ClassName: AdminTest
 * @Author: fan
 */
public class AdminTest {
    public static void main(String[]args){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
        Admin admin = (Admin) applicationContext.getBean("admin");
        System.out.println("admin = " + admin);
    }

}
